import { AppRegistry } from 'react-native';
import React from 'react'
import dva from 'dva-no-router'
import Router from './src/router'
import login from './src/models/login';
import indexPage from './src/models/indexPage/index'
import rectifyBill from './src/models/rectifyBill';
import troubleCollection from './src/models/troubleCollection';
import signIn from './src/models/signIn';
import projectsList from './src/models/projectsList';
import tasksList from './src/models/tasksList';
import sign from './src/models/sign/index';
import photograph from './src/models/photograph/index';
import taskReceive from './src/models/receiveTask';
import signOut from './src/models/signOut';
import taskForm from './src/models/master/taskForm';
import taskList from './src/models/master/taskList';
import taiZhang from './src/models/taiZhang';
import taizhangDetail from './src/models/taiZhangDetail'
import examination from './src/models/examination'
import examinationDetail from './src/models/examinationDetail'
import personalInfoes from './src/models/personalInfoes'
import editPwd from './src/models/editPwd'
import Pangitor from './src/models/pangitor'
import stateTracking from './src/models/stateTracking'
import dialog from './src/models/dialog'
import taskCenter from './src/models/taskCenter'
import zhengGaiDan from './src/models/zhengGaiDan'
import prjdetail from './src/models/projectDetail'


const app = dva({})
// const app = dva(createLoading());

app.model(login)
app.model(indexPage)
app.model(rectifyBill)
app.model(troubleCollection)
app.model(signIn)
app.model(projectsList)
app.model(tasksList)
app.model(sign)
app.model(photograph)
app.model(taskReceive)
app.model(signOut)
app.model(taskForm)
app.model(taskList)
app.model(taiZhang)
app.model(taizhangDetail)
app.model(examination)
app.model(examinationDetail)
app.model(personalInfoes)
app.model(editPwd)
app.model(Pangitor)
app.model(stateTracking)
app.model(dialog)
app.model(taskCenter)
app.model(zhengGaiDan)
app.model(prjdetail)

app.router(() => <Router />)

const App = app.start()

AppRegistry.registerComponent('demo', () => App);
